package braindamagestudio.com.app.fight;

import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.PixelFormat;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class HelloCanvas extends Activity {
	
	CustomDrawableView mCustomDrawableView;
	
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
            
    mCustomDrawableView = new CustomDrawableView(this);

   
    
    setContentView(mCustomDrawableView);
    
    }
        public class CustomDrawableView extends View {
        private ShapeDrawable mDrawable;

        public CustomDrawableView(Context context) {
        super(context);

        int x = 10;
        int y = 10;
        int width = 300;
        int height = 50;

        mDrawable = new ShapeDrawable(new OvalShape());
        mDrawable.getPaint().setColor(0xff74AC23);
        mDrawable.setBounds(x, y, x + width, y + height);
        

      //  drawable.setBounds(x+10, y, x + width, y + height);
        
        }

        protected void onDraw(Canvas canvas) {
        mDrawable.draw(canvas);

        }
        }

}

